﻿using System.Web.Mvc;
using IntroMVC4.Common;
namespace IntroMVC4.Areas.BinhMinh
{
    public class BinhMinhAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "BinhMinh";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            
            //context.MapRoute(
            //    "BinhMinh_default",
            //    "BinhMinh/{controller}/{action}/{id}",
            //    new { controller = "TrangChu", action = "Index", id = UrlParameter.Optional },
            //    namespaces: new[] { "IntroMVC4.Areas.BinhMinh.Controllers" }
            //);
            context.MapRoute(
            "BinhMinh_default",
            "binhminhhotel.net",
            "{controller}/{action}/{id}",
            new { controller = "TrangChu", action = "Index", id = UrlParameter.Optional },
            null,
            namespaces: new[] { "IntroMVC4.Areas.BinhMinh.Controllers" });
        }
    }
}
